import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:gourmet/utils/colors.dart';
import 'package:gourmet/utils/radian.dart';
import 'package:gourmet/utils/styles.dart';
import 'package:gourmet/utils/svg.dart';

/// 全部订单
class AllOrderController extends GetxController {}

class AllOrderView extends GetView<AllOrderController> {
  const AllOrderView({super.key});

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: [
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '待付款',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 20, bottom: 25),
                    child: SizedBox(
                      height: 60,
                      child: Row(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        mainAxisAlignment: MainAxisAlignment.start,
                        children: [
                          Wrap(
                            spacing: 7,
                            crossAxisAlignment: WrapCrossAlignment.center,
                            alignment: WrapAlignment.start,
                            children: [
                              Image.network(
                                'https://img1.baidu.com/it/u=2207667442,4175802803&fm=253&fmt=auto&app=120&f=JPEG?w=1067&h=800',
                                width: 60,
                                height: 60,
                                fit: BoxFit.fill,
                              ),
                              Image.network(
                                'https://img2.baidu.com/it/u=3140589721,2076671103&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
                                width: 60,
                                height: 60,
                                fit: BoxFit.fill,
                              ),
                              Image.network(
                                'https://img1.baidu.com/it/u=2031104156,3761366817&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500',
                                width: 60,
                                height: 60,
                                fit: BoxFit.fill,
                              ),
                              Image.network(
                                'https://img0.baidu.com/it/u=2702026728,914838739&fm=253&fmt=auto?w=500&h=352',
                                width: 60,
                                height: 60,
                                fit: BoxFit.fill,
                              ),
                            ],
                          ),
                          Container(
                            width: 1,
                            height: 60,
                            margin: const EdgeInsets.symmetric(horizontal: 10),
                            decoration: BoxDecoration(
                                color: ColorsUtils.rgba(228, 228, 228, 1),
                                boxShadow: [
                                  BoxShadow(
                                      blurStyle: BlurStyle.outer,
                                      offset: const Offset(-1, 0),
                                      color: ColorsUtils.rgba(0, 0, 0, 0.247058823529412),
                                      blurRadius: 5,
                                      spreadRadius: 0)
                                ]),
                          ),
                          Expanded(
                              child: Center(
                            child: Text(
                              '共6件',
                              style: StylesUtils.customTextStyle(color: ColorsUtils.color7979),
                            ),
                          ))
                        ],
                      ),
                    ),
                  ),
                  Container(
                    padding: const EdgeInsets.only(right: 10, bottom: 20),
                    alignment: Alignment.centerRight,
                    child: Text(
                      '应付款 ￥80',
                      style: StylesUtils.customTextStyle(
                          fontWeight: FontWeight.w700, color: ColorsUtils.color3333),
                    ),
                  ),
                  Align(
                      alignment: Alignment.centerRight,
                      child: InkWell(
                        onTap: () {},
                        child: Container(
                            alignment: Alignment.center,
                            constraints: const BoxConstraints.expand(
                              width: 90,
                              height: 35,
                            ),
                            decoration: BoxDecoration(
                                borderRadius: BorderRadius.circular(17.5),
                                gradient: LinearGradient(
                                    colors: [
                                      //linear-gradient(90deg, rgba(255, 153, 0, 1) 0%, rgba(255, 153, 0, 1) 0%, rgba(254, 70, 1, 1) 100%, rgba(254, 70, 1, 1) 100%)
                                      ColorsUtils.rgba(255, 153, 0, 1),
                                      ColorsUtils.rgba(255, 153, 0, 1),
                                      ColorsUtils.rgba(254, 70, 1, 1),
                                      ColorsUtils.rgba(254, 70, 1, 1)
                                    ],
                                    stops: const [
                                      0,
                                      0,
                                      1.0,
                                      1.0
                                    ],
                                    transform: GradientRotation(RadianUtils.angleToRadian(90)),
                                    begin: Alignment.centerLeft,
                                    end: Alignment.centerRight)),
                            child: Text(
                              '去付款',
                              style: StylesUtils.customTextStyle(),
                            )),
                      ))
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '待顾客取货',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 20, bottom: 25),
                    child: SizedBox(
                      height: 60,
                      child: Row(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        mainAxisAlignment: MainAxisAlignment.start,
                        children: [
                          Wrap(
                            spacing: 7,
                            crossAxisAlignment: WrapCrossAlignment.center,
                            alignment: WrapAlignment.start,
                            children: [
                              Image.network(
                                'https://img2.baidu.com/it/u=2864525257,2661889927&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800',
                                width: 60,
                                height: 60,
                                fit: BoxFit.fill,
                              ),
                              Stack(
                                clipBehavior: Clip.none,
                                children: [
                                  Image.network(
                                    'https://img1.baidu.com/it/u=4137063274,203950602&fm=253&fmt=auto&app=120&f=JPEG?w=1140&h=641',
                                    width: 60,
                                    height: 60,
                                    fit: BoxFit.fill,
                                  ),
                                  Positioned(
                                      top: -5,
                                      right: -5,
                                      child: Container(
                                        alignment: Alignment.center,
                                        constraints:
                                            const BoxConstraints.expand(width: 15, height: 15),
                                        decoration: BoxDecoration(
                                            color: Colors.white,
                                            borderRadius: BorderRadius.circular(7.5),
                                            border: Border.all(
                                                color: ColorsUtils.parseColorFromHexString(
                                                    ColorsUtils.colorFf00))),
                                        child: Text(
                                          '2',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.colorFf00,
                                              fontSize: StylesUtils.fontSize11),
                                        ),
                                      ))
                                ],
                              )
                            ],
                          ),
                          Expanded(
                              child: Align(
                            alignment: Alignment.centerRight,
                            child: Text(
                              '共3件',
                              style: StylesUtils.customTextStyle(color: ColorsUtils.color7979),
                            ),
                          ))
                        ],
                      ),
                    ),
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text.rich(TextSpan(children: [
                        WidgetSpan(
                            child: Container(
                              constraints: const BoxConstraints.expand(width: 60, height: 20),
                              alignment: Alignment.center,
                              decoration: BoxDecoration(
                                  borderRadius: BorderRadius.circular(2.r),
                                  border: Border.all(
                                      color: ColorsUtils.parseColorFromHexString(
                                          ColorsUtils.color63b5))),
                              child: Text(
                                '到店自取',
                                style: StylesUtils.customTextStyle(
                                    color: ColorsUtils.color63b5, fontSize: StylesUtils.fontSize12),
                              ),
                            ),
                            alignment: PlaceholderAlignment.middle),
                        TextSpan(
                            text: ' 预计18:10自取',
                            style: StylesUtils.customTextStyle(
                                color: ColorsUtils.color9999, fontSize: StylesUtils.fontSize13))
                      ])),
                      Text(
                        '应付款 ￥41',
                        style: StylesUtils.customTextStyle(
                            fontWeight: FontWeight.w700, color: ColorsUtils.color3333),
                      )
                    ],
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '商家待接单',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                          padding: const EdgeInsets.only(left: 15),
                          child: Column(
                            children: [
                              Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: [
                                  Text(
                                    '香辣鸡块汉堡包',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  ),
                                  Text(
                                    '￥25',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  )
                                ],
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 25),
                                alignment: Alignment.centerLeft,
                                child: Text(
                                  '×2',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      color: ColorsUtils.color0000),
                                ),
                              )
                            ],
                          ),
                        ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerRight,
                    child: Text(
                      '实付款 ￥50',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color0000, fontWeight: FontWeight.w700),
                    ),
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '商家待接单',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                          padding: const EdgeInsets.only(left: 15),
                          child: Column(
                            children: [
                              Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: [
                                  Text(
                                    '香辣鸡块汉堡包',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  ),
                                  Text(
                                    '￥25',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  )
                                ],
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 25),
                                alignment: Alignment.centerLeft,
                                child: Text(
                                  '×1',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      color: ColorsUtils.color0000),
                                ),
                              )
                            ],
                          ),
                        ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerLeft,
                    child: Wrap(
                      spacing: 20,
                      crossAxisAlignment: WrapCrossAlignment.center,
                      alignment: WrapAlignment.start,
                      children: [
                        Text.rich(TextSpan(children: [
                          WidgetSpan(
                              child: SvgUtils.assetName('u4378', width: 24, height: 15),
                              alignment: PlaceholderAlignment.middle),
                          TextSpan(
                              text: ' 平台转送',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15, color: ColorsUtils.color0000))
                        ])),
                        Text(
                          '已超时12分钟',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf99, fontSize: StylesUtils.fontSize15),
                        )
                      ],
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 15),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Text.rich(TextSpan(children: [
                          WidgetSpan(child: SvgUtils.assetName('u4376', width: 14, height: 15)),
                          TextSpan(
                              text: ' 12:29再次发起催单',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize13, color: ColorsUtils.colorFca1))
                        ])),
                        Text(
                          '实付款 ￥25',
                          style: StylesUtils.customTextStyle(
                              fontWeight: FontWeight.w700, color: ColorsUtils.color0000),
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '商家待接单',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                          padding: const EdgeInsets.only(left: 15),
                          child: Column(
                            children: [
                              Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: [
                                  Text(
                                    '香辣鸡块汉堡包',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  ),
                                  Text(
                                    '￥25',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  )
                                ],
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 25),
                                alignment: Alignment.centerLeft,
                                child: Text(
                                  '×1',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      color: ColorsUtils.color0000),
                                ),
                              )
                            ],
                          ),
                        ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerLeft,
                    child: Wrap(
                      spacing: 20,
                      crossAxisAlignment: WrapCrossAlignment.center,
                      alignment: WrapAlignment.start,
                      children: [
                        Text.rich(TextSpan(children: [
                          WidgetSpan(
                              child: SvgUtils.assetName('u4378', width: 24, height: 15),
                              alignment: PlaceholderAlignment.middle),
                          TextSpan(
                              text: ' 商家配送',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize15, color: ColorsUtils.color0000))
                        ])),
                        Text(
                          '预计12:30送达',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.color9999, fontSize: StylesUtils.fontSize15),
                        )
                      ],
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 15),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Text.rich(TextSpan(children: [
                          WidgetSpan(child: SvgUtils.assetName('u4376', width: 14, height: 15)),
                          TextSpan(
                              text: ' 12:30发起催单',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize13, color: ColorsUtils.colorFca1))
                        ])),
                        Text(
                          '实付款 ￥25',
                          style: StylesUtils.customTextStyle(
                              fontWeight: FontWeight.w700, color: ColorsUtils.color0000),
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '交易成功',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                          padding: const EdgeInsets.only(left: 15),
                          child: Column(
                            children: [
                              Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: [
                                  Text(
                                    '香辣鸡块汉堡包',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  ),
                                  Text(
                                    '￥25',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  )
                                ],
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 25),
                                alignment: Alignment.centerLeft,
                                child: Text(
                                  '×1',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      color: ColorsUtils.color0000),
                                ),
                              )
                            ],
                          ),
                        ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerRight,
                    child: Text(
                      '实付款 ￥25',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color0000, fontWeight: FontWeight.w700),
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 15),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        SvgUtils.assetName('u4333', width: 35, height: 35),
                        Wrap(
                          spacing: 15,
                          crossAxisAlignment: WrapCrossAlignment.center,
                          alignment: WrapAlignment.end,
                          children: [
                            Container(
                              constraints: const BoxConstraints.expand(width: 90, height: 35),
                              decoration: BoxDecoration(
                                  borderRadius: BorderRadius.circular(17.5),
                                  border: Border.all(
                                      color: ColorsUtils.parseColorFromHexString(
                                          ColorsUtils.colorFf64))),
                              alignment: Alignment.center,
                              child: Text(
                                '去评价',
                                style: StylesUtils.customTextStyle(color: ColorsUtils.colorFf64),
                              ),
                            ),
                            Container(
                              constraints: const BoxConstraints.expand(width: 90, height: 35),
                              decoration: BoxDecoration(
                                  borderRadius: BorderRadius.circular(17.5),
                                  gradient: LinearGradient(
                                      colors: [
                                        //linear-gradient(90deg, rgba(255, 153, 0, 1) 0%, rgba(255, 153, 0, 1) 0%, rgba(254, 70, 1, 1) 100%, rgba(254, 70, 1, 1) 100%)
                                        ColorsUtils.rgba(255, 153, 0, 1),
                                        ColorsUtils.rgba(255, 153, 0, 1),
                                        ColorsUtils.rgba(254, 70, 1, 1),
                                        ColorsUtils.rgba(254, 70, 1, 1)
                                      ],
                                      stops: const [
                                        0,
                                        0,
                                        1.0,
                                        1.0
                                      ],
                                      transform: GradientRotation(RadianUtils.angleToRadian(90)),
                                      begin: Alignment.centerLeft,
                                      end: Alignment.centerRight)),
                              alignment: Alignment.center,
                              child: Text(
                                '再次购买',
                                style: StylesUtils.customTextStyle(),
                              ),
                            )
                          ],
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                        padding: const EdgeInsets.only(left: 10),
                        alignment: Alignment.centerLeft,
                        child: Text.rich(TextSpan(children: [
                          TextSpan(
                              text: '华莱士-凤凰广场2店 ',
                              style: StylesUtils.customTextStyle(
                                  fontSize: StylesUtils.fontSize16,
                                  fontWeight: FontWeight.w700,
                                  color: ColorsUtils.color0000)),
                          WidgetSpan(
                              child: Icon(
                                Icons.arrow_forward_ios_outlined,
                                size: 15,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                              ),
                              alignment: PlaceholderAlignment.middle)
                        ])),
                      )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '交易成功',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                          padding: const EdgeInsets.only(left: 15),
                          child: Column(
                            children: [
                              Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: [
                                  Text(
                                    '香辣鸡块汉堡包',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  ),
                                  Text(
                                    '￥25',
                                    style: StylesUtils.customTextStyle(
                                        fontSize: StylesUtils.fontSize16,
                                        color: ColorsUtils.color0000),
                                  )
                                ],
                              ),
                              Container(
                                margin: const EdgeInsets.only(top: 25),
                                alignment: Alignment.centerLeft,
                                child: Text(
                                  '×1',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      color: ColorsUtils.color0000),
                                ),
                              )
                            ],
                          ),
                        ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerRight,
                    child: Text(
                      '实付款 ￥25',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color0000, fontWeight: FontWeight.w700),
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 15),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        SvgUtils.assetName('u4333', width: 35, height: 35),
                        Container(
                          constraints: const BoxConstraints.expand(width: 90, height: 35),
                          decoration: BoxDecoration(
                              borderRadius: BorderRadius.circular(17.5),
                              gradient: LinearGradient(
                                  colors: [
                                    //linear-gradient(90deg, rgba(255, 153, 0, 1) 0%, rgba(255, 153, 0, 1) 0%, rgba(254, 70, 1, 1) 100%, rgba(254, 70, 1, 1) 100%)
                                    ColorsUtils.rgba(255, 153, 0, 1),
                                    ColorsUtils.rgba(255, 153, 0, 1),
                                    ColorsUtils.rgba(254, 70, 1, 1),
                                    ColorsUtils.rgba(254, 70, 1, 1)
                                  ],
                                  stops: const [
                                    0,
                                    0,
                                    1.0,
                                    1.0
                                  ],
                                  transform: GradientRotation(RadianUtils.angleToRadian(90)),
                                  begin: Alignment.centerLeft,
                                  end: Alignment.centerRight)),
                          alignment: Alignment.center,
                          child: Text(
                            '再次购买',
                            style: StylesUtils.customTextStyle(),
                          ),
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
}

/// 待使用订单
class WaitUsedOrderController extends GetxController {}

class WaitUsedOrderView extends GetView<WaitUsedOrderController> {
  const WaitUsedOrderView({super.key});

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: [
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      ClipRRect(
                        borderRadius: BorderRadius.circular(4.r),
                        child: Image.network(
                          'https://img2.baidu.com/it/u=4292932787,3263075086&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500',
                          width: 40,
                          height: 40,
                        ),
                      ),
                      Expanded(
                          child: Padding(
                        padding: const EdgeInsets.only(left: 10),
                        child: Row(
                          children: [
                            Container(
                              constraints: const BoxConstraints(maxWidth: 150),
                              alignment: Alignment.centerLeft,
                              child: Text(
                                '森巴舞巴西烧肉店',
                                maxLines: 1,
                                overflow: TextOverflow.ellipsis,
                                style: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize16,
                                    fontWeight: FontWeight.w700,
                                    color: ColorsUtils.color0000),
                              ),
                            ),
                            Align(
                              alignment: Alignment.centerLeft,
                              child: Icon(
                                Icons.arrow_forward_ios,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                                size: 15,
                              ),
                            )
                          ],
                        ),
                      )),
                      Text(
                        '待使用',
                        style: StylesUtils.customTextStyle(
                            fontSize: StylesUtils.fontSize16, color: ColorsUtils.colorFf64),
                      )
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        ClipRRect(
                          borderRadius: BorderRadius.circular(4.r),
                          child: Image.network(
                            'https://img2.baidu.com/it/u=482685489,468052618&fm=253&fmt=auto&app=138&f=JPEG?w=749&h=500',
                            width: 60,
                            height: 60,
                            fit: BoxFit.fill,
                          ),
                        ),
                        Expanded(
                            child: Padding(
                          padding: const EdgeInsets.only(left: 10),
                          child: Column(
                            children: [
                              Row(
                                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                children: [
                                  Text(
                                    '烤肉两人套餐',
                                    style: StylesUtils.customTextStyle(
                                        color: ColorsUtils.color0000,
                                        fontSize: StylesUtils.fontSize16),
                                  ),
                                  Text(
                                    '￥85',
                                    style: StylesUtils.customTextStyle(
                                        color: ColorsUtils.color0000,
                                        fontSize: StylesUtils.fontSize16),
                                  )
                                ],
                              ),
                              Container(
                                padding: const EdgeInsets.only(top: 25),
                                alignment: Alignment.centerLeft,
                                child: Text.rich(TextSpan(children: [
                                  TextSpan(
                                      text: '剩1份 · ',
                                      style: StylesUtils.customTextStyle(
                                          fontSize: StylesUtils.fontSize12,
                                          color: ColorsUtils.color9999)),
                                  TextSpan(
                                      text: '剩余3天有效',
                                      style: StylesUtils.customTextStyle(
                                          fontSize: StylesUtils.fontSize12,
                                          color: ColorsUtils.colorCc00))
                                ])),
                              )
                            ],
                          ),
                        ))
                      ],
                    ),
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Container(
                        constraints: const BoxConstraints.expand(width: 30, height: 16),
                        alignment: Alignment.center,
                        decoration: BoxDecoration(
                            borderRadius: BorderRadius.circular(2.r),
                            border: Border.all(
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorCccc))),
                        child: Text(
                          '团购',
                          style: StylesUtils.customTextStyle(
                              fontSize: StylesUtils.fontSize12, color: ColorsUtils.colorCccc),
                        ),
                      ),
                      Text.rich(TextSpan(children: [
                        TextSpan(
                            text: '共1件，',
                            style: StylesUtils.customTextStyle(
                                color: ColorsUtils.color9999, fontSize: StylesUtils.fontSize12)),
                        TextSpan(
                            text: '应付款 ￥85',
                            style: StylesUtils.customTextStyle(
                                color: ColorsUtils.color0000, fontWeight: FontWeight.w700))
                      ]))
                    ],
                  ),
                  Container(
                    margin: const EdgeInsets.only(top: 15),
                    alignment: Alignment.centerRight,
                    child: Container(
                      constraints: const BoxConstraints.expand(width: 90, height: 35),
                      decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(17.5),
                          gradient: LinearGradient(
                              colors: [
                                //linear-gradient(90deg, rgba(255, 153, 0, 1) 0%, rgba(255, 153, 0, 1) 0%, rgba(254, 70, 1, 1) 100%, rgba(254, 70, 1, 1) 100%)
                                ColorsUtils.rgba(255, 153, 0, 1),
                                ColorsUtils.rgba(255, 153, 0, 1),
                                ColorsUtils.rgba(254, 70, 1, 1),
                                ColorsUtils.rgba(254, 70, 1, 1)
                              ],
                              stops: const [
                                0,
                                0,
                                1.0,
                                1.0
                              ],
                              transform: GradientRotation(RadianUtils.angleToRadian(90)),
                              begin: Alignment.centerLeft,
                              end: Alignment.centerRight)),
                      alignment: Alignment.center,
                      child: Text(
                        '到店使用',
                        style: StylesUtils.customTextStyle(),
                      ),
                    ),
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
                  BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      ClipRRect(
                        borderRadius: BorderRadius.circular(4.r),
                        child: Image.network(
                          'https://img2.baidu.com/it/u=4292932787,3263075086&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500',
                          width: 40,
                          height: 40,
                        ),
                      ),
                      Expanded(
                          child: Padding(
                        padding: const EdgeInsets.only(left: 10),
                        child: Row(
                          children: [
                            Container(
                              constraints: const BoxConstraints(maxWidth: 150),
                              alignment: Alignment.centerLeft,
                              child: Text(
                                '森巴舞巴西烧肉店',
                                maxLines: 1,
                                overflow: TextOverflow.ellipsis,
                                style: StylesUtils.customTextStyle(
                                    fontSize: StylesUtils.fontSize16,
                                    fontWeight: FontWeight.w700,
                                    color: ColorsUtils.color0000),
                              ),
                            ),
                            Align(
                              alignment: Alignment.centerLeft,
                              child: Icon(
                                Icons.arrow_forward_ios,
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                                size: 15,
                              ),
                            )
                          ],
                        ),
                      )),
                      Text(
                        '待使用',
                        style: StylesUtils.customTextStyle(
                            fontSize: StylesUtils.fontSize16, color: ColorsUtils.colorFf64),
                      )
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Column(
                      children: [
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          crossAxisAlignment: CrossAxisAlignment.start,
                          children: [
                            ClipRRect(
                              borderRadius: BorderRadius.circular(4.r),
                              child: Image.network(
                                'https://img2.baidu.com/it/u=482685489,468052618&fm=253&fmt=auto&app=138&f=JPEG?w=749&h=500',
                                width: 60,
                                height: 60,
                                fit: BoxFit.fill,
                              ),
                            ),
                            Expanded(
                                child: Padding(
                              padding: const EdgeInsets.only(left: 10),
                              child: Column(
                                children: [
                                  Row(
                                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                    children: [
                                      Text(
                                        '烤肉两人套餐',
                                        style: StylesUtils.customTextStyle(
                                            color: ColorsUtils.color0000,
                                            fontSize: StylesUtils.fontSize16),
                                      ),
                                      Text(
                                        '￥170',
                                        style: StylesUtils.customTextStyle(
                                            color: ColorsUtils.color0000,
                                            fontSize: StylesUtils.fontSize16),
                                      )
                                    ],
                                  ),
                                  Container(
                                    padding: const EdgeInsets.only(top: 25),
                                    alignment: Alignment.centerLeft,
                                    child: Text.rich(TextSpan(children: [
                                      TextSpan(
                                          text: '剩1份 · 有效期至2098-06-08',
                                          style: StylesUtils.customTextStyle(
                                              fontSize: StylesUtils.fontSize12,
                                              color: ColorsUtils.color9999)),
                                    ])),
                                  )
                                ],
                              ),
                            ))
                          ],
                        ),
                        Padding(
                          padding: const EdgeInsets.only(top: 20),
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.start,
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              ClipRRect(
                                borderRadius: BorderRadius.circular(4.r),
                                child: Image.network(
                                  'https://img2.baidu.com/it/u=482685489,468052618&fm=253&fmt=auto&app=138&f=JPEG?w=749&h=500',
                                  width: 60,
                                  height: 60,
                                  fit: BoxFit.fill,
                                ),
                              ),
                              Expanded(
                                  child: Padding(
                                padding: const EdgeInsets.only(left: 10),
                                child: Column(
                                  children: [
                                    Row(
                                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                      children: [
                                        Text(
                                          '烤鱼单人套餐',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color0000,
                                              fontSize: StylesUtils.fontSize16),
                                        ),
                                        Text(
                                          '￥35',
                                          style: StylesUtils.customTextStyle(
                                              color: ColorsUtils.color0000,
                                              fontSize: StylesUtils.fontSize16),
                                        )
                                      ],
                                    ),
                                    Container(
                                      padding: const EdgeInsets.only(top: 25),
                                      alignment: Alignment.centerLeft,
                                      child: Row(
                                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                        children: [
                                          Text.rich(TextSpan(children: [
                                            TextSpan(
                                                text: '剩1份 · 有效期至2098-06-08',
                                                style: StylesUtils.customTextStyle(
                                                    fontSize: StylesUtils.fontSize12,
                                                    color: ColorsUtils.color9999)),
                                          ])),
                                          Text(
                                            '退款中',
                                            style: StylesUtils.customTextStyle(
                                                color: ColorsUtils.colorFf99,
                                                fontSize: StylesUtils.fontSize13),
                                          )
                                        ],
                                      ),
                                    )
                                  ],
                                ),
                              ))
                            ],
                          ),
                        )
                      ],
                    ),
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Container(
                        constraints: const BoxConstraints.expand(width: 30, height: 16),
                        alignment: Alignment.center,
                        decoration: BoxDecoration(
                            borderRadius: BorderRadius.circular(2.r),
                            border: Border.all(
                                color: ColorsUtils.parseColorFromHexString(ColorsUtils.colorCccc))),
                        child: Text(
                          '团购',
                          style: StylesUtils.customTextStyle(
                              fontSize: StylesUtils.fontSize12, color: ColorsUtils.colorCccc),
                        ),
                      ),
                      Text.rich(TextSpan(children: [
                        TextSpan(
                            text: '共3件，',
                            style: StylesUtils.customTextStyle(
                                color: ColorsUtils.color9999, fontSize: StylesUtils.fontSize12)),
                        TextSpan(
                            text: '应付款 ￥1,666',
                            style: StylesUtils.customTextStyle(
                                color: ColorsUtils.color0000, fontWeight: FontWeight.w700))
                      ]))
                    ],
                  ),
                  Container(
                    margin: const EdgeInsets.only(top: 15),
                    alignment: Alignment.centerRight,
                    child: Container(
                      constraints: const BoxConstraints.expand(width: 90, height: 35),
                      decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(17.5),
                          gradient: LinearGradient(
                              colors: [
                                //linear-gradient(90deg, rgba(255, 153, 0, 1) 0%, rgba(255, 153, 0, 1) 0%, rgba(254, 70, 1, 1) 100%, rgba(254, 70, 1, 1) 100%)
                                ColorsUtils.rgba(255, 153, 0, 1),
                                ColorsUtils.rgba(255, 153, 0, 1),
                                ColorsUtils.rgba(254, 70, 1, 1),
                                ColorsUtils.rgba(254, 70, 1, 1)
                              ],
                              stops: const [
                                0,
                                0,
                                1.0,
                                1.0
                              ],
                              transform: GradientRotation(RadianUtils.angleToRadian(90)),
                              begin: Alignment.centerLeft,
                              end: Alignment.centerRight)),
                      alignment: Alignment.center,
                      child: Text(
                        '到店使用',
                        style: StylesUtils.customTextStyle(),
                      ),
                    ),
                  )
                ],
              ),
            ),
          )
        ],
      ),
    );
  }
}

/// 待评价订单
class WaitEvaluateOrderController extends GetxController {}

class WaitEvaluateOrderView extends GetView<WaitEvaluateOrderController> {
  const WaitEvaluateOrderView({super.key});

  @override
  Widget build(BuildContext context) {
    return const SingleChildScrollView();
  }
}

/// 退款订单
class RefundOrderController extends GetxController {}

class RefundOrderView extends GetView<RefundOrderController> {
  const RefundOrderView({super.key});

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: [
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
              BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                            padding: const EdgeInsets.only(left: 10),
                            alignment: Alignment.centerLeft,
                            child: Text.rich(TextSpan(children: [
                              TextSpan(
                                  text: '华莱士-凤凰广场2店 ',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      fontWeight: FontWeight.w700,
                                      color: ColorsUtils.color0000)),
                              WidgetSpan(
                                  child: Icon(
                                    Icons.arrow_forward_ios_outlined,
                                    size: 15,
                                    color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                                  ),
                                  alignment: PlaceholderAlignment.middle)
                            ])),
                          )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '关闭交易',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                              padding: const EdgeInsets.only(left: 15),
                              child: Column(
                                children: [
                                  Row(
                                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                    children: [
                                      Text(
                                        '香辣鸡块汉堡包',
                                        style: StylesUtils.customTextStyle(
                                            fontSize: StylesUtils.fontSize16,
                                            color: ColorsUtils.color0000),
                                      ),
                                      Text(
                                        '￥25',
                                        style: StylesUtils.customTextStyle(
                                            fontSize: StylesUtils.fontSize16,
                                            color: ColorsUtils.color0000),
                                      )
                                    ],
                                  ),
                                  Container(
                                    margin: const EdgeInsets.only(top: 25),
                                    alignment: Alignment.centerLeft,
                                    child: Row(
                                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                      children: [
                                        Text(
                                          '×1',
                                          style: StylesUtils.customTextStyle(
                                              fontSize: StylesUtils.fontSize16,
                                              color: ColorsUtils.color0000),
                                        ),
                                        Text('退款成功', style: StylesUtils.customTextStyle(
                                          color: ColorsUtils.colorFf99,
                                          fontSize: StylesUtils.fontSize13
                                        ),)
                                      ],
                                    ),
                                  )
                                ],
                              ),
                            ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerRight,
                    child: Text(
                      '实付款 ￥25',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color0000, fontWeight: FontWeight.w700),
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.only(top: 15),
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        SvgUtils.assetName('u4333', width: 35, height: 35),
                        Container(
                          constraints: const BoxConstraints.expand(width: 90, height: 35),
                          decoration: BoxDecoration(
                              borderRadius: BorderRadius.circular(17.5),
                              gradient: LinearGradient(
                                  colors: [
                                    //linear-gradient(90deg, rgba(255, 153, 0, 1) 0%, rgba(255, 153, 0, 1) 0%, rgba(254, 70, 1, 1) 100%, rgba(254, 70, 1, 1) 100%)
                                    ColorsUtils.rgba(255, 153, 0, 1),
                                    ColorsUtils.rgba(255, 153, 0, 1),
                                    ColorsUtils.rgba(254, 70, 1, 1),
                                    ColorsUtils.rgba(254, 70, 1, 1)
                                  ],
                                  stops: const [
                                    0,
                                    0,
                                    1.0,
                                    1.0
                                  ],
                                  transform: GradientRotation(RadianUtils.angleToRadian(90)),
                                  begin: Alignment.centerLeft,
                                  end: Alignment.centerRight)),
                          alignment: Alignment.center,
                          child: Text(
                            '再次购买',
                            style: StylesUtils.customTextStyle(),
                          ),
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
              BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                            padding: const EdgeInsets.only(left: 10),
                            alignment: Alignment.centerLeft,
                            child: Text.rich(TextSpan(children: [
                              TextSpan(
                                  text: '华莱士-凤凰广场2店 ',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      fontWeight: FontWeight.w700,
                                      color: ColorsUtils.color0000)),
                              WidgetSpan(
                                  child: Icon(
                                    Icons.arrow_forward_ios_outlined,
                                    size: 15,
                                    color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                                  ),
                                  alignment: PlaceholderAlignment.middle)
                            ])),
                          )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '制作配送中',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                              padding: const EdgeInsets.only(left: 15),
                              child: Column(
                                children: [
                                  Row(
                                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                    children: [
                                      Text(
                                        '香辣鸡块汉堡包',
                                        style: StylesUtils.customTextStyle(
                                            fontSize: StylesUtils.fontSize16,
                                            color: ColorsUtils.color0000),
                                      ),
                                      Text(
                                        '￥25',
                                        style: StylesUtils.customTextStyle(
                                            fontSize: StylesUtils.fontSize16,
                                            color: ColorsUtils.color0000),
                                      )
                                    ],
                                  ),
                                  Container(
                                    margin: const EdgeInsets.only(top: 25),
                                    alignment: Alignment.centerLeft,
                                    child: Row(
                                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                      children: [
                                        Text(
                                          '×1',
                                          style: StylesUtils.customTextStyle(
                                              fontSize: StylesUtils.fontSize16,
                                              color: ColorsUtils.color0000),
                                        ),
                                        Text('退款中', style: StylesUtils.customTextStyle(
                                            color: ColorsUtils.colorFf99,
                                            fontSize: StylesUtils.fontSize13
                                        ),)
                                      ],
                                    ),
                                  )
                                ],
                              ),
                            ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerRight,
                    child: Text(
                      '实付款 ￥25',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color0000, fontWeight: FontWeight.w700),
                    ),
                  ),
                ],
              ),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            alignment: Alignment.center,
            child: Container(
              constraints: const BoxConstraints(maxWidth: 345),
              decoration:
              BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(10.r)),
              padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
              alignment: Alignment.centerLeft,
              child: Column(
                children: [
                  Row(
                    children: [
                      Image.network(
                        'https://img0.baidu.com/it/u=655977884,3582260165&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                        width: 40,
                        height: 40,
                      ),
                      Expanded(
                          child: Container(
                            padding: const EdgeInsets.only(left: 10),
                            alignment: Alignment.centerLeft,
                            child: Text.rich(TextSpan(children: [
                              TextSpan(
                                  text: '华莱士-凤凰广场2店 ',
                                  style: StylesUtils.customTextStyle(
                                      fontSize: StylesUtils.fontSize16,
                                      fontWeight: FontWeight.w700,
                                      color: ColorsUtils.color0000)),
                              WidgetSpan(
                                  child: Icon(
                                    Icons.arrow_forward_ios_outlined,
                                    size: 15,
                                    color: ColorsUtils.parseColorFromHexString(ColorsUtils.color9999),
                                  ),
                                  alignment: PlaceholderAlignment.middle)
                            ])),
                          )),
                      Container(
                        alignment: Alignment.centerRight,
                        child: Text(
                          '制作配送中',
                          style: StylesUtils.customTextStyle(
                              color: ColorsUtils.colorFf64, fontSize: StylesUtils.fontSize16),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.symmetric(vertical: 15),
                    child: Row(
                      children: [
                        Image.network(
                          'https://img0.baidu.com/it/u=3832533788,1331377521&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1720112400&t=708adcf9030f25978a25ccba4432226b',
                          width: 60,
                          height: 60,
                          fit: BoxFit.fill,
                        ),
                        Expanded(
                            child: Padding(
                              padding: const EdgeInsets.only(left: 15),
                              child: Column(
                                children: [
                                  Row(
                                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                    children: [
                                      Text(
                                        '香辣鸡块汉堡包',
                                        style: StylesUtils.customTextStyle(
                                            fontSize: StylesUtils.fontSize16,
                                            color: ColorsUtils.color0000),
                                      ),
                                      Text(
                                        '￥25',
                                        style: StylesUtils.customTextStyle(
                                            fontSize: StylesUtils.fontSize16,
                                            color: ColorsUtils.color0000),
                                      )
                                    ],
                                  ),
                                  Container(
                                    margin: const EdgeInsets.only(top: 25),
                                    alignment: Alignment.centerLeft,
                                    child: Row(
                                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                                      children: [
                                        Text(
                                          '×1',
                                          style: StylesUtils.customTextStyle(
                                              fontSize: StylesUtils.fontSize16,
                                              color: ColorsUtils.color0000),
                                        ),
                                        Text('退款中', style: StylesUtils.customTextStyle(
                                            color: ColorsUtils.colorFf99,
                                            fontSize: StylesUtils.fontSize13
                                        ),)
                                      ],
                                    ),
                                  )
                                ],
                              ),
                            ))
                      ],
                    ),
                  ),
                  Align(
                    alignment: Alignment.centerRight,
                    child: Text(
                      '实付款 ￥25',
                      style: StylesUtils.customTextStyle(
                          color: ColorsUtils.color0000, fontWeight: FontWeight.w700),
                    ),
                  ),
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
}
